﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Model.Entities;

namespace Model.ViewModels
{
    public class RoomCrudAdminVm
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti grupu.")]
        public int? RoomGroup { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti oznaku.")]
        public string Mark { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti tip sobe.")]
        public TypeOfRoom Type { get; set; }

        public string Name { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti površinu.")]
        public double? Area { get; set; }

        public IList<RoomVm> Rooms { get; set; }
    }
}
